package com.helloniu.wb.tools {

public class ResizeManager {
    public function ResizeManager() {
    }

    /**
     * Set the current resize box;
     */
    public static function hideResizeBox():void {
        if(isResizeBoxVisible()) {
            resizeBox.visible = false;
        }
    }

    public static function isResizeBoxVisible():Boolean {
        if(resizeBox != null && resizeBox.visible) {
            return true;
        }

        return false;
    }

    /**
     * Set the current resize box;
     */
    public static function setResizeBox(resizeBox0:ResizeBox, vis:Boolean = true):void {
        if(resizeBox != null && resizeBox.visible) {
            resizeBox.visible = false;
        }

        resizeBox = resizeBox0;
        resizeBox.visible = vis;
    }

    public static function getResizeBox():ResizeBox {
        return resizeBox;
    }

    private static var resizeBox:ResizeBox;
}
}